package view;

import java.awt.*;
import javax.swing.*;
import model.*;

public class StepView extends AbstractView {
	
	private static final long serialVersionUID = -7891669840482084995L;
    private final String STEP_PREFIX = "Step";
    //Instantie variabelen van het type JLabel
    private JLabel stepLabel;
	
	public StepView() {
		//Instantie variabelen initialiseren
		this.stepLabel = new JLabel(STEP_PREFIX);
		this.setSize(200,200);
		this.setPanelItems();
	}
	
	private void setPanelItems() {
		this.add(this.stepLabel);
	}
	
	public void updateSteps(int steps) {
		//Update stappen
		this.stepLabel.setText(STEP_PREFIX + " : " + steps);
		this.updateView();
	}

}
